import Vue from 'vue'
import VueTree from 'vue-jstree'
import VueScroller from 'vue-scroller'
import RouterExtends from 'base/router-extends'
import RouterModule from 'base/router-module'
import Ripple from 'vue-ripple-directive'
import 'vue-beauty/package/style/vue-beauty.min.css'
import vueBeauty from 'vue-beauty'

Ripple.color = 'rgba(0, 0, 0, 0.1)'
Vue.directive('ripple', Ripple)
Vue.use(vueBeauty)

// eslint-disable-next-line no-undef
let OpenXmlXP = openxmlXP
let sleep = async function (duration) {
  return new Promise((resolve, reject) => {
    setTimeout(resolve, duration)
  })
}

export {
  VueTree,
  VueScroller,
  RouterExtends,
  RouterModule,
  OpenXmlXP,
  sleep
}
